home *** CD-ROM | disk | FTP | other *** search
- How to use the program PSTRUC
-
-
-
- The program has only two functions. The first function generates a print file,
- named UNUSEDPA, to mean unused paragraphs and the second one creates the
- print file, named ORGCHARP, which contains the structure chart. You may
- have defined paragraphs which may or may not contain lines and you may have
- forgotton that you no longer use them. In other words, they are
- not PERFROMED from anywhere from within your source program. So, by
- generating this print file, you may see these paragraphs, if any, and
- decide to keep them or to eliminate them. Attention! The paragraphs
- called from within DECLARATIVES appear as if they were called from
- nowhere from within the program so make sure to distinguish them
- and do not eliminate them by mistake. This is a current limitation
- of the program PSTRUC. Attention again! PSTRUC requires that the
- highest level paragraph, right after the PROCEDURE DIVISION, be
- prefixed A000. You may chose paragraph prefixes for all the other
- paragraphs to your heart's wish so long as they are four-digit long
- and they are unique. PSTRUC will flag out any duplicate paragraph
- prefixes so you can concentrate yourself on the real job rather
- than on this detail. After all, if you have, by mistake, used the
- same paragraph prefix more than once, you just change it and continue
- doing the work.
-
- The second function of the program is the most important one. It
- creates the ORGCHARP. It is a print file which contains the structure
- chart of your program in an indented list form. You can consult it with
- an ASCII text editor or send out to the printer for a hardcopy.
-
- You need to rename your source file as ISOURCE.CBL and place it
- in the working directory of the program PSTRUC. PSTRUCT creates
- and uses a couple of files to accomplish its internal work. So,
- do not pay attention to these files. However, the one, named OSOURCE.CBL,
- is important. PSTRUCT creates OSOURCE.CBL as an output file which
- is basically same as your original program source file (ISOURCE.CBL) but
- its order is changed when necessary. OSOURCE.CBL rearranges your
- original source program in logical call order. So, if the pyhsical
- call order of paragraphs in your source program do not correspond
- to the logical order of your program, you may use the OSOURCE.CBL.
- You just eliminate your original source file and rename OUSOURCE.CBL
- to be your original source file. When you read the source code, it
- is nice to see that each PERFORMED paragraph follows right afterwards
- so that you do not tire yourself too much by jumping around in the source
- file in an effort to find where the performed paragraph is located.
- The only exception to this is those paragraphs which are PERFORMED
- several times throughout the program source file. In that case, the
- paragraph will appear right after the first paragraph wherefrom it
- is performed.
-
- This shareware utility program for COBOL programmers can be distributed
- without limitations.
-
- After having tried this shareware program, for regular use, please send
- check or money order of US$ 20.00 to:
-
- Enver DEMIRTAS
- Custom Business Software Development
- 2, bd St-Georges
- P.O. Box 214
- 1211 Geneva / Swizlerland
-
- After reception of your payment, you will be registered as a licenced user
- and you will get regular updates and support from the author.
-
- The author can be contacted at the above address or thru:
-
- Voice/fax: 041 022 329 53 30
- Email: edemirtas@automail.com
-